/** Worksheet indexes of years. 
  2011 - Worksheet 1
  2010 - Worksheet 2
  2009 - Worksheet 3
*/
function getWorksheetIndex(year) {
    if (year=="2011") return 1 ;
    else if (year=="2010") return 2 ;
    else return 3 ;
}

himages = new Array(4);
himages[0] = "http://matra115.hu/templates/ja_purity/images/header/header08.jpg";
himages[1] = "http://matra115.hu/templates/ja_purity/images/header/header09.jpg";
himages[2] = "http://matra115.hu/templates/ja_purity/images/header/header11.jpg";
himages[3] = "http://matra115.hu/templates/ja_purity/images/header/header12.jpg";
//himages[4] = "http://matra115.hu/templates/ja_purity/images/header/header05.jpg";
//himages[5] = "http://matra115.hu/templates/ja_purity/images/header/header07.jpg";
            
function setRandomHeaderImage() {
    document.getElementById("topheader").style.backgroundImage = "url(" + himages[ Math.floor(Math.random() * himages.length) ] + ")" ;
}


